<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
	
<div class="col-xs-12">
	<form:form commandName="taskjob" cssClass="form-horizontal" role="form">
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="taskName">督查任务单号</label>
			<div class="col-sm-4">
				<input type="text" name="sysId" id="sysId" placeholder="督查任务单号" value=""
					   class="form-control ">
			</div>
			<label class="col-sm-2 control-label no-padding-right" for="valid">任务状态</label>
			<div class="col-sm-4">
				<select name="valid" id="valid" class="form-control">
					<option value="">--请选择--</option>
					<option value="1">有效任务</option>
					<option value="0">失效任务</option>
				</select>

			</div>

		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="taskName">任务名称</label>
			<div class="col-sm-4">
				<input type="text" name="taskName" id="taskName" placeholder="任务名称" value="${taskjob.taskName}"
					   class="form-control ">
			</div>

			<label class="col-sm-2 control-label no-padding-right" for="projectName">项目名称</label>
			<div class="col-sm-4">
				<input type="text" name="projectName" id="projectName" placeholder="项目名称" value="${taskjob.projectName}"
					   class="form-control ">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="taskContent">任务内容</label>
			<div class="col-sm-10">
            <textarea rows="5" id="taskContent" name="taskContent" placeholder="任务内容" value="${taskjob.taskContent}"
					  class="form-control "/>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="startDate">开始时间</label>
			<div class="col-sm-4">
				<input type="text" name="startDate" id="startDate" placeholder="开始时间" value="${taskjob.startDate}"
					   autocomplete="off" class="form-control date-picker" readonly>
			</div>
			<label class="col-sm-2 control-label no-padding-right" for="endDate">结束时间</label>
			<div class="col-sm-4">
				<input type="text" name="endDate" id="endDate" placeholder="结束时间" value="${taskjob.endDate}"
					   autocomplete="off" class="form-control date-picker" readonly>
			</div>
		</div>

		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="respResult">责任单位反馈结果</label>
			<div class="col-sm-4">
				<input type="text" name="respResult" id="respResult" placeholder="未完成" value="${taskjob.respResult}"
					   class="form-control ">
			</div>
			<label class="col-sm-2 control-label no-padding-right" for="supervisionResult">督查组反馈结果</label>
			<div class="col-sm-4">
				<input type="text" name="supervisionResult" id="supervisionResult" placeholder="未完成"
					   value="${taskjob.supervisionResult}" class="form-control ">
			</div>
		</div>

		<%--节点id的后台name  需修改为nodeNames--%>
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="nodeId">节点ID</label>
			<div class="col-sm-4">
				<input type="text" name="nodeId" id="nodeId" placeholder="节点ID" value="${taskjob.nodeId}"
					   class="form-control ">
			</div>
			<label class="col-sm-2 control-label no-padding-right" for="node-Name">节点名称</label>
			<div class="col-sm-4">
				<input type="text" name="nodeNames" id="node-Name" placeholder="节点名称" value="${taskjob.nodeName}"
					   class="form-control ">
			</div>
		</div>

		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="resDept">责任单位</label>
			<div class="col-sm-4">
				<input type="text" name="resDept" id="resDept" placeholder="责任单位" value="${taskjob.resDept}"
					   class="form-control ">
			</div>
			<label class="col-sm-2 control-label no-padding-right" for="resUser">责任单位责任人</label>
			<div class="col-sm-4">
				<input type="text" name="resUser" id="resUser" placeholder="责任人姓名" value="${taskjob.resUser}"
					   class="form-control ">
			</div>
		</div>

		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="resPhone">责任人手机号</label>
			<div class="col-sm-4">
				<input type="text" name="resPhone" id="resPhone" placeholder="责任人手机号" value="${taskjob.resPhone}"
					   class="form-control ">
			</div>
			<label class="col-sm-2 control-label no-padding-right" for="operatorUser">责任单位经办人</label>
			<div class="col-sm-4">
				<input type="text" name="operatorUser" id="operatorUser" placeholder="经办人姓名" value="${taskjob.operatorUser}"
					   class="form-control ">
			</div>
		</div>


		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="operatorPhone">经办人手机号</label>
			<div class="col-sm-4">
				<input type="text" name="operatorPhone" id="operatorPhone" placeholder="经办人手机号" value="${taskjob.operatorPhone}"
					   class="form-control ">
			</div>
			<label class="col-sm-2 control-label no-padding-right" for="taskResult">任务结果</label>
			<div class="col-sm-4">
				<select name="taskResult" id="taskResult" class="form-control">
					<option value="">--请选择--</option>
					<option value="0">未完成</option>
					<option value="1">已完成</option>
					<option value="3">已考核</option>
				</select>
			</div>
		</div>

	</form:form>
	<hr width="100%;height:2px;">
	<div class="row" style="margin-left: 2px;">
		* 以上按住如此标志：<img src="/assets/web/img/zzc.png"  alt="提示" />可拖动调整相应输入框大小
	</div>
</div>
<script>
    jQuery(function($) {
        $(".date-picker").datepicker({
            inline: true,
            format:"yyyymmdd",
            autoclose: true,
            todayHighlight: true,
            language: 'cn'
        }).next().on(ace.click_event, function(){
            $(this).prev().focus();
        });
    });
</script>